# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-asn1-modules
pkgver=0.3.0
pkgrel=1
pkgdesc="A collection of ASN.1-based protocols modules"
url="https://pypi.org/project/pyasn1-modules"
arch="noarch"
license="BSD-2-Clause"
depends="py3-asn1"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pyasn1-modules/pyasn1_modules-$pkgver.tar.gz"
builddir="$srcdir"/pyasn1_modules-$pkgver

replaces="py-asn1-modules" # Backwards compatibility
provides="py-asn1-modules=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
fedcf95e0452e133fc0735a1be29fb5e7df563243203463c66b85d9af6194a550c78a96fec2d915be1aa6b98428f51b6ed4feb7ed3838c515d044fbafeb2cb46  pyasn1_modules-0.3.0.tar.gz
"
